<?php
/**
 * Created by JetBrains PhpStorm.
 * User: quangvu
 * Date: 5/25/13
 * Time: 9:52 AM
 * To change this template use File | Settings | File Templates.
 */

class HomeController extends BaseController {

    public function __construct() {
        parent::__construct();
    }

    public function index() {
        $model = $this->load->model('Home');
        //$post= $model->getPost();
        //$data = $post->toArray();
        //Logger::plog($data);
        //$data['pageTitle'] = 'Demo';
        //$data['postTitle'] = $post->getTitle();
        //$data['postContent'] = $post->getContent();
        $data['post'] = $model->getPost();
        $data['MAIN_VIEW'] = 'home/index.php';
        $this->load->view('layouts/1-column.php', $data);
    }
}